//
//  ZXLTopicModel.m
//  EPA
//
//  Created by 朱兴隆 on 16/4/22.
//  Copyright © 2016年 朱兴隆. All rights reserved.
//

#import "ZXLTopicModel.h"

@implementation ZXLUserInfo

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"userinfo"]) {
        [self setValuesForKeysWithDictionary:value];
    }
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
@end

@implementation ZXLCounterList

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"counterList"]) {
        [self setValuesForKeysWithDictionary:value];
    }
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
@end

@implementation ZXLTopicModel

#pragma mark - ZXLRadioListModel
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"userInfo"]) {
        self.userInfoModel = [ZXLUserInfo new];
        [self.userInfoModel setValuesForKeysWithDictionary:value];
    }
    if ([key isEqualToString:@"counterList"]) {
        self.counterListModel = [ZXLCounterList new];
        [self.counterListModel setValuesForKeysWithDictionary:value];
    }
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}


@end
